package cn.gotom.pinggu.pojos;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.gotom.core.pojos.BaseEntity;
import cn.gotom.core.pojos.User;

/**
 * 
 * (投入产出)数据采集
 * 
 * @author peixere@qq.com
 * 
 * @version 2012-12-03
 * 
 */
@Entity
@Table()
public class Trcc extends BaseEntity implements Serializable
{
	private static final long serialVersionUID = 1L;

	/**
	 * 纳税人代码
	 */
	@Column(length = 50)
	private String nsrdm;

	/**
	 * 纳税人名称
	 */
	@Column(length = 500)
	private String nsrmc;

	/**
	 * 年
	 */
	@Column(length = 11)
	private int nd;

	/**
	 * 月份
	 */
	@Column(length = 11)
	private int yf;

	/**
	 * 产品种类
	 */
	@JoinColumn(name = "cpzl_id", referencedColumnName = "id")
	@ManyToOne
	private Cpzl cpzl;

	/**
	 * 产品种类
	 */
	@JoinColumn(name = "cppw_id", referencedColumnName = "id")
	@ManyToOne
	private Cppw cppw;

	/**
	 * 原料品位
	 */
	@JoinColumn(name = "ylpw_id", referencedColumnName = "id")
	@ManyToOne
	private Ylpw ylpw;

	/**
	 * 整个生产过程耗电量（万千瓦时）
	 */
	@Column(length = 11)
	private int hdl;

	/**
	 * 产品期初库存 吨
	 */
	@Column()
	private float cpqckc;

	/**
	 * 产品期末库存 吨
	 */
	@Column()
	private float cpqmkc;

	/**
	 * 本期产品产量 吨
	 */
	@Column()
	private float bccpcl;

	/**
	 * 产品平均销售价格 元
	 */
	@Column()
	private float cppjxsjg;

	/**
	 * 本期产品销量 吨
	 */
	@Column()
	private float bccpxl;

	/**
	 * 创建人
	 */
	@JoinColumn(name = "user_id", referencedColumnName = "id")
	@ManyToOne
	private User user;

	public String getNsrdm()
	{
		return nsrdm;
	}

	public void setNsrdm(String nsrdm)
	{
		this.nsrdm = nsrdm;
	}

	public String getNsrmc()
	{
		return nsrmc;
	}

	public void setNsrmc(String nsrmc)
	{
		this.nsrmc = nsrmc;
	}

	public int getNd()
	{
		return nd;
	}

	public void setNd(int nd)
	{
		this.nd = nd;
	}

	public int getYf()
	{
		return yf;
	}

	public void setYf(int yf)
	{
		this.yf = yf;
	}

	public Cpzl getCpzl()
	{
		return cpzl;
	}

	public void setCpzl(Cpzl cpzl)
	{
		this.cpzl = cpzl;
	}

	public Cppw getCppw()
	{
		return cppw;
	}

	public void setCppw(Cppw cppw)
	{
		this.cppw = cppw;
	}

	public Ylpw getYlpw()
	{
		return ylpw;
	}

	public void setYlpw(Ylpw ylpw)
	{
		this.ylpw = ylpw;
	}

	public int getHdl()
	{
		return hdl;
	}

	public void setHdl(int hdl)
	{
		this.hdl = hdl;
	}

	public float getCpqckc()
	{
		return cpqckc;
	}

	public void setCpqckc(float cpqckc)
	{
		this.cpqckc = cpqckc;
	}

	public float getCpqmkc()
	{
		return cpqmkc;
	}

	public void setCpqmkc(float cpqmkc)
	{
		this.cpqmkc = cpqmkc;
	}

	public float getBccpcl()
	{
		return bccpcl;
	}

	public void setBccpcl(float bccpcl)
	{
		this.bccpcl = bccpcl;
	}

	public float getCppjxsjg()
	{
		return cppjxsjg;
	}

	public void setCppjxsjg(float cppjxsjg)
	{
		this.cppjxsjg = cppjxsjg;
	}

	public float getBccpxl()
	{
		return bccpxl;
	}

	public void setBccpxl(float bccpxl)
	{
		this.bccpxl = bccpxl;
	}

	public User getUser()
	{
		return user;
	}

	public void setUser(User user)
	{
		this.user = user;
	}

}